package com.drdj.kitty;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

import com.drdj_kitty.R;

public class Menu2Activity extends BaseActivity {
	
	private ImageButton mBtnTwitter;
	private ImageButton mBtnFacebook;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.menu2_activity);
		
		setTitle("SNS");
		
		setAsMenu(2);
		
		mBtnTwitter = (ImageButton) findViewById(R.id.btnTwitter);
		mBtnFacebook = (ImageButton) findViewById(R.id.btnFacebook);
		
		mBtnTwitter.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				// Intent intent = new Intent(Menu2Activity.this, TwitterActivity.class);
				// startActivity(intent);
				Intent intent = new Intent(Intent.ACTION_VIEW);
				intent.setData(Uri.parse("https://mobile.twitter.com/kitty_castle"));
				startActivity(intent);
			}
		});
		
		mBtnFacebook.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
//				Intent intent = new Intent(Menu2Activity.this, FacebookActivity.class);
//				startActivity(intent);
				Intent intent = new Intent(Intent.ACTION_VIEW);
				intent.setData(Uri.parse("http://facebook.com/kittycastlekorea"));
				startActivity(intent);
			}
		});
	}
	
}